package indi.zhifa.recipe.bailan5.coupon.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.recipe.bailan.framework.mysql.entity.po.BaseEntity;
import indi.zhifa.recipe.bailan5.coupon.entity.enums.ECouponTriggerType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * <p>
 * 消费券表
 * </p>
 *
 * @author 织法
 * @since 2023-02-08
 */
@Data
@TableName("busy_coupon")
@Schema(title = "CouponEntity对象", description = "消费券表")
public class CouponEntity extends BaseEntity {

    @Schema(title = "消费券名")
    private String name;

    @Schema(title = "生效条件类型")
    private ECouponTriggerType effectType;

    @Schema(title = "生效条件值")
    private Double effectVal;

    @Schema(title = "优惠类型")
    private ECouponTriggerType bargainType;

    @Schema(title = "优惠值")
    private Double bargainVal;

    @Schema(title = "库存")
    private Integer storage;

    @Schema(title = "用户最大领取数")
    private Integer userGetMax;

    @Schema(title = "公司Id")
    private Long companyAuthId;

    @Schema(title = "超时日期")
    private LocalDate expireDate;

}
